#include "mainwindow.h"
#include "arena.h"
#include <QDesktopWidget>
#include <QScrollArea>
#include <QScrollBar>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
{
    QDesktopWidget d;
    QRect screen = d.screenGeometry();

    if(screen.width() > screen.height())
        span = screen.width();
    else
        span = screen.height();

    Arena* a= new Arena(screen.width()*2, screen.height(), this);

    this->setCentralWidget(a);
}

MainWindow::~MainWindow()
{
    
}
